3.4.61 \(\int (a+a \sin (e+f x))^{5/2} \sqrt {c-c \sin (e+f x)} \, dx\) [361]

Optimal. Leaf size=43 \[ \frac {c \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{3 f \sqrt {c-c \sin (e+f x)}} \]

[Out]

1/3*c*cos(f*x+e)*(a+a*sin(f*x+e))^(5/2)/f/(c-c*sin(f*x+e))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.06, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.033, Rules used = {2817} \begin {gather*} \frac {c \cos (e+f x) (a \sin (e+f x)+a)^{5/2}}{3 f \sqrt {c-c \sin (e+f x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + a*Sin[e + f*x])^(5/2)*Sqrt[c - c*Sin[e + f*x]],x]

[Out]

(c*Cos[e + f*x]*(a + a*Sin[e + f*x])^(5/2))/(3*f*Sqrt[c - c*Sin[e + f*x]])

Rule 2817

Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[
-2*b*Cos[e + f*x]*((c + d*Sin[e + f*x])^n/(f*(2*n + 1)*Sqrt[a + b*Sin[e + f*x]])), x] /; FreeQ[{a, b, c, d, e,
 f, n}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[n, -2^(-1)]

Rubi steps

\begin {align*} \int (a+a \sin (e+f x))^{5/2} \sqrt {c-c \sin (e+f x)} \, dx &=\frac {c \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{3 f \sqrt {c-c \sin (e+f x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.18, size = 72, normalized size = 1.67 \begin {gather*} -\frac {a^2 \sec (e+f x) \sqrt {a (1+\sin (e+f x))} \sqrt {c-c \sin (e+f x)} (6 \cos (2 (e+f x))-15 \sin (e+f x)+\sin (3 (e+f x)))}{12 f} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + a*Sin[e + f*x])^(5/2)*Sqrt[c - c*Sin[e + f*x]],x]

[Out]

-1/12*(a^2*Sec[e + f*x]*Sqrt[a*(1 + Sin[e + f*x])]*Sqrt[c - c*Sin[e + f*x]]*(6*Cos[2*(e + f*x)] - 15*Sin[e + f
*x] + Sin[3*(e + f*x)]))/f

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(78\) vs. \(2(37)=74\).
time = 17.67, size = 79, normalized size = 1.84

method result size
default \(\frac {\sqrt {-c \left (\sin \left (f x +e \right )-1\right )}\, \sin \left (f x +e \right ) \left (a \left (1+\sin \left (f x +e \right )\right )\right )^{\frac {5}{2}} \left (\cos ^{4}\left (f x +e \right )-\sin \left (f x +e \right ) \left (\cos ^{2}\left (f x +e \right )\right )+2-2 \sin \left (f x +e \right )\right )}{3 f \cos \left (f x +e \right )^{5}}\) \(79\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*sin(f*x+e))^(5/2)*(c-c*sin(f*x+e))^(1/2),x,method=_RETURNVERBOSE)

[Out]

1/3/f*(-c*(sin(f*x+e)-1))^(1/2)*sin(f*x+e)*(a*(1+sin(f*x+e)))^(5/2)*(cos(f*x+e)^4-sin(f*x+e)*cos(f*x+e)^2+2-2*
sin(f*x+e))/cos(f*x+e)^5

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(5/2)*(c-c*sin(f*x+e))^(1/2),x, algorithm="maxima")

[Out]

integrate((a*sin(f*x + e) + a)^(5/2)*sqrt(-c*sin(f*x + e) + c), x)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 88 vs. \(2 (40) = 80\).
time = 0.35, size = 88, normalized size = 2.05 \begin {gather*} -\frac {{\left (3 \, a^{2} \cos \left (f x + e\right )^{2} - 3 \, a^{2} + {\left (a^{2} \cos \left (f x + e\right )^{2} - 4 \, a^{2}\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}}{3 \, f \cos \left (f x + e\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(5/2)*(c-c*sin(f*x+e))^(1/2),x, algorithm="fricas")

[Out]

-1/3*(3*a^2*cos(f*x + e)^2 - 3*a^2 + (a^2*cos(f*x + e)^2 - 4*a^2)*sin(f*x + e))*sqrt(a*sin(f*x + e) + a)*sqrt(
-c*sin(f*x + e) + c)/(f*cos(f*x + e))

________________________________________________________________________________________

Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))**(5/2)*(c-c*sin(f*x+e))**(1/2),x)

[Out]

Exception raised: SystemError >> excessive stack use: stack is 4368 deep

________________________________________________________________________________________

Giac [A]
time = 0.46, size = 54, normalized size = 1.26 \begin {gather*} -\frac {8 \, a^{\frac {5}{2}} \sqrt {c} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{6} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}{3 \, f} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(5/2)*(c-c*sin(f*x+e))^(1/2),x, algorithm="giac")

[Out]

-8/3*a^(5/2)*sqrt(c)*cos(-1/4*pi + 1/2*f*x + 1/2*e)^6*sgn(cos(-1/4*pi + 1/2*f*x + 1/2*e))*sgn(sin(-1/4*pi + 1/
2*f*x + 1/2*e))/f

________________________________________________________________________________________

Mupad [B]
time = 7.75, size = 86, normalized size = 2.00 \begin {gather*} -\frac {a^2\,\sqrt {a\,\left (\sin \left (e+f\,x\right )+1\right )}\,\sqrt {-c\,\left (\sin \left (e+f\,x\right )-1\right )}\,\left (6\,\cos \left (e+f\,x\right )+6\,\cos \left (3\,e+3\,f\,x\right )-14\,\sin \left (2\,e+2\,f\,x\right )+\sin \left (4\,e+4\,f\,x\right )\right )}{12\,f\,\left (\cos \left (2\,e+2\,f\,x\right )+1\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a*sin(e + f*x))^(5/2)*(c - c*sin(e + f*x))^(1/2),x)

[Out]

-(a^2*(a*(sin(e + f*x) + 1))^(1/2)*(-c*(sin(e + f*x) - 1))^(1/2)*(6*cos(e + f*x) + 6*cos(3*e + 3*f*x) - 14*sin
(2*e + 2*f*x) + sin(4*e + 4*f*x)))/(12*f*(cos(2*e + 2*f*x) + 1))

________________________________________________________________________________________